import request from "@/utils/request";

// 查询桥隧涵列表
export function listbridge(query) {
  return request({
    url: "production-plan/bridge/culvert/list",
    method: "get",
    params: query,
  });
}
// 新增桥隧涵
export function addbridge(data) {
  return request({
    url: "production-plan/bridge/culvert/add",
    method: "post",
    data: data,
  });
}
//修改桥隧涵
export function updatebridge(data) {
  return request({
    url: "production-plan/bridge/culvert/edit",
    method: "post",
    data: data,
  });
}
//删除桥隧涵
export function deletebridgeById(data) {
  return request({
    url: "production-plan/bridge/culvert/deleteById",
    method: "get",
    params: data,
  });
}

export function syncMaintain(data) {
  return request({
    url: "production-plan/maintain/content/syncMaintain",
    method: "get",
    params: data,
  });
}

export function typesyncMaintain(data) {
  return request({
    url: "production-plan/maintain/type/syncMaintain",
    method: "get",
    params: data,
  });
}

//查询维修内容信息
export function listMaintain(query) {
  return request({
    url: "production-plan/maintain/content/list",
    method: "get",
    params: query,
  });
}
// 新增维修内容
export function addMaintain(data) {
  return request({
    url: "production-plan/maintain/content/add",
    method: "post",
    data: data,
  });
}
//修改维修内容
export function updateMaintain(data) {
  return request({
    url: "production-plan/maintain/content/edit",
    method: "post",
    data: data,
  });
}
//删除维修内容
export function deleteMaintain(data) {
  return request({
    url: "production-plan/maintain/content/deleteById",
    method: "get",
    params: data,
  });
}

//查询维修类型信息
export function listMaintaintype(query) {
  return request({
    url: "production-plan/maintain/type/list",
    method: "get",
    params: query,
  });
}
// 新增维修类型
export function addMaintaintype(data) {
  return request({
    url: "production-plan/maintain/type/add",
    method: "post",
    data: data,
  });
}
//修改维修类型
export function updateMaintaintype(data) {
  return request({
    url: "production-plan/maintain/type/edit",
    method: "post",
    data: data,
  });
}
//删除维修类型
export function deleteMaintaintype(data) {
  return request({
    url: "production-plan/maintain/type/deleteById",
    method: "get",
    params: data,
  });
}

//查询施工/维修等级信息
export function listMaintaingrade(query) {
  return request({
    url: "production-plan/maintain/grade/list",
    method: "get",
    params: query,
  });
}
// 新增施工/维修等级
export function addMaintaingrade(data) {
  return request({
    url: "production-plan/maintain/grade/add",
    method: "post",
    data: data,
  });
}
//修改施工/维修等级
export function updateMaintaingrade(data) {
  return request({
    url: "production-plan/maintain/grade/edit",
    method: "post",
    data: data,
  });
}
//删除施工/维修等级
export function deleteMaintaingrade(data) {
  return request({
    url: "production-plan/maintain/grade/deleteById",
    method: "get",
    params: data,
  });
}

//查询天窗类型
export function listskylighttype(query) {
  return request({
    url: "production-plan/skylight/type/list",
    method: "get",
    params: query,
  });
}
// 新增天窗类型
export function addskylighttype(data) {
  return request({
    url: "production-plan/skylight/type/add",
    method: "post",
    data: data,
  });
}
//修改天窗类型
export function updateskylighttype(data) {
  return request({
    url: "production-plan/skylight/type/edit",
    method: "post",
    data: data,
  });
}
//删除天窗类型
export function deleteskylighttype(data) {
  return request({
    url: "production-plan/skylight/type/deleteById",
    method: "get",
    params: data,
  });
}

//查询要消令车站
export function liststation(query) {
  return request({
    url: "production-plan/station/station/list",
    method: "get",
    params: query,
  });
}
// 新增要消令车站
export function addstation(data) {
  return request({
    url: "production-plan/station/station/add",
    method: "post",
    data: data,
  });
}
//修改要消令车站
export function updatestation(data) {
  return request({
    url: "production-plan/station/station/edit",
    method: "post",
    data: data,
  });
}
//删除要消令车站
export function deletestation(data) {
  return request({
    url: "production-plan/station/station/deleteById",
    method: "get",
    params: data,
  });
}

//查询行别
export function listprogresstype(query) {
  return request({
    url: "production-plan/progress/type/list",
    method: "get",
    params: query,
  });
}
// 新增行别
export function addprogresstype(data) {
  return request({
    url: "production-plan/progress/type/add",
    method: "post",
    data: data,
  });
}
//修改行别
export function updateprogresstype(data) {
  return request({
    url: "production-plan/progress/type/edit",
    method: "post",
    data: data,
  });
}
//删除行别
export function deleteprogresstype(data) {
  return request({
    url: "production-plan/progress/type/deleteById",
    method: "get",
    params: data,
  });
}

//查询任务类型
export function listtaskTypetype(query) {
  return request({
    url: "production-plan/taskType/type/list",
    method: "get",
    params: query,
  });
}
// 新增任务类型
export function addtaskTypetype(data) {
  return request({
    url: "production-plan/taskType/type/add",
    method: "post",
    data: data,
  });
}
//修改任务类型
export function updatetaskTypetype(data) {
  return request({
    url: "production-plan/taskType/type/edit",
    method: "post",
    data: data,
  });
}
//删除任务类型
export function deletetaskTypetype(data) {
  return request({
    url: "production-plan/taskType/type/deleteById",
    method: "get",
    params: data,
  });
}

//查询应急任务
export function listdictionaries(query) {
  return request({
    url: "production-plan/dictionaries/emergency/list",
    method: "get",
    params: query,
  });
}
// 新增应急任务
export function adddictionaries(data) {
  return request({
    url: "production-plan/dictionaries/emergency/add",
    method: "post",
    data: data,
  });
}
//修改应急任务
export function updatedictionaries(data) {
  return request({
    url: "production-plan/dictionaries/emergency/edit",
    method: "post",
    data: data,
  });
}
//删除应急任务
export function deletedictionaries(data) {
  return request({
    url: "production-plan/dictionaries/emergency/deleteById",
    method: "get",
    params: data,
  });
}

//查询计划审批状态
export function listplan(query) {
  return request({
    url: "production-plan/plan/auditState/list",
    method: "get",
    params: query,
  });
}
// 新增计划审批状态
export function adddplan(data) {
  return request({
    url: "production-plan/plan/auditState/add",
    method: "post",
    data: data,
  });
}
//修改计划审批状态
export function updateplan(data) {
  return request({
    url: "production-plan/plan/auditState/edit",
    method: "post",
    data: data,
  });
}
//删除计划审批状态
export function deleteplan(data) {
  return request({
    url: "production-plan/plan/auditState/deleteById",
    method: "get",
    params: data,
  });
}

//查询天窗/限速的计划时间控制层
export function selectProDictionariesSkylightPlanTimeList(query) {
  return request({
    url: "production-plan/planTime/selectProDictionariesSkylightPlanTimeList",
    method: "get",
    params: query,
  });
}
// 新增天窗/限速的计划时间控制层
export function insertProDictionariesSkylightPlanTime(data) {
  return request({
    url: "production-plan/planTime/insertProDictionariesSkylightPlanTime",
    method: "post",
    data: data,
  });
}
//修改天窗/限速的计划时间控制层
export function editProDictionariesSkylightPlanTime(data) {
  return request({
    url: "production-plan/planTime/editProDictionariesSkylightPlanTime",
    method: "post",
    data: data,
  });
}
//删除天窗/限速的计划时间控制层
export function deleteProDictionariesSkylightPlanTimeById(data) {
  return request({
    url: "production-plan/planTime/deleteProDictionariesSkylightPlanTimeById",
    method: "get",
    params: data,
  });
}

//查询专业
export function selectProDictionariesSpecialtyList(query) {
  return request({
    url: "production-plan/specialty/selectProDictionariesSpecialtyList",
    method: "get",
    params: query,
  });
}
// 新增专业
export function insertProDictionariesSpecialty(data) {
  return request({
    url: "production-plan/specialty/insertProDictionariesSpecialty",
    method: "post",
    data: data,
  });
}
//修改专业
export function editProDictionariesSpecialty(data) {
  return request({
    url: "production-plan/specialty/editProDictionariesSpecialty",
    method: "post",
    data: data,
  });
}
//删除专业
export function deleteProDictionariesSpecialtyById(data) {
  return request({
    url: "production-plan/specialty/deleteProDictionariesSpecialtyById",
    method: "get",
    params: data,
  });
}

//查询股道
export function selectProDictionariesFacilityTrackList(query) {
  return request({
    url: "production-plan/facilityTrack/selectProDictionariesFacilityTrackList",
    method: "get",
    params: query,
  });
}
// 新增股道
export function insertProDictionariesFacilityTrack(data) {
  return request({
    url: "production-plan/facilityTrack/insertProDictionariesFacilityTrack",
    method: "post",
    data: data,
  });
}
//修改股道
export function editProDictionariesFacilityTrack(data) {
  return request({
    url: "production-plan/facilityTrack/editProDictionariesFacilityTrack",
    method: "post",
    data: data,
  });
}
//删除股道
export function deleteProDictionariesFacilityTrackById(data) {
  return request({
    url: "production-plan/facilityTrack/deleteProDictionariesFacilityTrackById",
    method: "get",
    params: data,
  });
}

//查询道岔
export function selectProDictionariesFacilityTurnoutList(query) {
  return request({
    url: "production-plan/fFacilityTurnout/selectProDictionariesFacilityTurnoutList",
    method: "get",
    params: query,
  });
}
// 新增道岔
export function insertProDictionariesFacilityTurnout(data) {
  return request({
    url: "production-plan/fFacilityTurnout/insertProDictionariesFacilityTurnout",
    method: "post",
    data: data,
  });
}
//修改道岔
export function editProDictionariesFacilityTurnout(data) {
  return request({
    url: "production-plan/fFacilityTurnout/editProDictionariesFacilityTurnout",
    method: "post",
    data: data,
  });
}
//删除道岔
export function deleteProDictionariesFacilityTurnoutById(data) {
  return request({
    url: "production-plan/fFacilityTurnout/deleteProDictionariesFacilityTurnoutById",
    method: "get",
    params: data,
  });
}

//查询线路
export function selectProDictionariesRailwayList(query) {
  return request({
    url: "production-plan/railway/selectProDictionariesRailwayList",
    method: "get",
    params: query,
  });
}
// 新增线路
export function insertProDictionariesRailway(data) {
  return request({
    url: "production-plan/railway/insertProDictionariesRailway",
    method: "post",
    data: data,
  });
}
//修改线路
export function editProDictionariesRailway(data) {
  return request({
    url: "production-plan/railway/editProDictionariesRailway",
    method: "post",
    data: data,
  });
}
//删除线路
export function deleteProDictionariesRailwayById(data) {
  return request({
    url: "production-plan/railway/deleteProDictionariesRailwayById",
    method: "get",
    params: data,
  });
}

//查询智慧池
export function selectProIntelligentRecommendationPoolList(query) {
  return request({
    url: "production-plan/intelligentRecommendationPool/selectProIntelligentRecommendationPoolList",
    method: "get",
    params: query,
  });
}
// 新增智慧池
export function insertProIntelligentRecommendationPool(data) {
  return request({
    url: "production-plan/intelligentRecommendationPool/insertProIntelligentRecommendationPool",
    method: "post",
    data: data,
  });
}
//修改智慧池
export function editProIntelligentRecommendationPool(data) {
  return request({
    url: "production-plan/intelligentRecommendationPool/editProIntelligentRecommendationPool",
    method: "post",
    data: data,
  });
}

//组织注销
export function logoutById(query) {
  return request({
    url: "production-plan/organization/management/logoutById",
    method: "get",
    params: query,
  });
}
//桥隧涵同步
export function culvertsyncBtc(data) {
  return request({
    url: "production-plan/bridge/culvert/syncBtc",
    method: "get",
    params: data,
  });
}
//股道同步
export function syncTrack(data) {
  return request({
    url: "production-plan/facilityTrack/syncTrack",
    method: "get",
    params: data,
  });
}
//道岔同步
export function syncTurnout(data) {
  return request({
    url: "production-plan/fFacilityTurnout/syncTurnout",
    method: "get",
    params: data,
  });
}
//线路同步
export function syncRailway(data) {
  return request({
    url: "production-plan/railway/syncRailway",
    method: "get",
    params: data,
  });
}
//要消令车站同步
export function syncStation(data) {
  return request({
    url: "production-plan/station/station/syncStation",
    method: "get",
    params: data,
  });
}

//查询项目名称
export function selectProDictionariesConstructionProjectList(query) {
  return request({
    url: "production-plan/project/selectProDictionariesConstructionProjectList",
    method: "get",
    params: query,
  });
}
// 新增项目名称
export function insertProDictionariesConstructionProject(data) {
  return request({
    url: "production-plan/project/insertProDictionariesConstructionProject",
    method: "post",
    data: data,
  });
}
//修改项目名称
export function editProDictionariesConstructionProject(data) {
  return request({
    url: "production-plan/project/editProDictionariesConstructionProject",
    method: "post",
    data: data,
  });
}
//删除项目名称
export function deleteProDictionariesConstructionProjectById(data) {
  return request({
    url: "production-plan/project/deleteProDictionariesConstructionProjectById",
    method: "get",
    params: data,
  });
}